# -*- coding: utf-8 -*-
# @Author: bao
# @Date:   2017-01-24 11:29:17
# @Last Modified by:   bao
# @Last Modified time: 2017-02-06 22:41:33

from Jellyfish import *

numOfHost=4
numOfLink=4
numOfToRs=8
topo = Jellyfish(numOfHost=numOfHost, numOfLink=numOfLink, numOfToRs=numOfToRs)
topo.CreateTopology()
output_str="jellyfish_output_%s_%s.txt"%(numOfToRs,numOfLink)
f = open(output_str, "w")
for linkId in topo.links:
    print >> f, linkId
f.close()